<?xml version="1.0" encoding="UTF-8" ?>
<catalogue>
    {foreach from=$products item=product}
    <produit>
        <ref><![CDATA[{$product.id}]]></ref>
        <marque><![CDATA[{$product.brand}]]></marque>
        <nom><![CDATA[{$product}]]></nom>
        <description><![CDATA[{$product.descriptif|strip_tags}]]></description>
        <prix><![CDATA[{$product.actualPrice}]]></prix>
        <url><![CDATA[{$product.url}]]></url>
        <image><![CDATA[{$product.mainPhoto.maxi}]]></image>
        <delai><![CDATA[2-3]]></delai>
        <port><![CDATA[{$product.vendor.delivery[0].cout}]]></port>
        <stock><![CDATA[{if $product.totalStock > 0}En stock{else}Hors stock{/if}]]></stock>
        <quantite><![CDATA[{$product.totalStock}]]></quantite>
        <categorie1><![CDATA[{$product.category}]]></categorie1>
        <categorie2><![CDATA[{$product.subcategory}]]></categorie2>
        <categorie3><![CDATA[{$product.subsubcategory}]]></categorie3>
    </produit>
    {/foreach}
</catalogue>